/*
 * Copyright 2013-2015 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xdtech.hotel.protocol.vo;

import java.util.Calendar;
import java.util.Date;

/**
 * 
 * @author max.zheng
 * @create 2015-4-27下午9:58:58
 * @since 1.0
 * @see
 */
public class Time {
	private String year;	//” : “2015”, 
	private String month;	//” : “4”, 
	private String day;		//” : “24”, 
	private String hour;	//” : “11”, 
	private String minute;	//” : “50” , 
	private String second;	//” : “11” 
	
	
	public Time() {
		super();
//		Date date = new Date();
		Calendar cal = Calendar.getInstance();
//		int year = cal.get(Calendar.YEAR);//获取年份
//        int month=cal.get(Calendar.MONTH);//获取月份
//        int day=cal.get(Calendar.DATE);//获取日
//        int hour=cal.get(Calendar.HOUR);//小时
//        int minute=cal.get(Calendar.MINUTE);//分           
//        int second=cal.get(Calendar.SECOND);//秒
		this.year = cal.get(Calendar.YEAR)+"";
		this.month = cal.get(Calendar.MONTH)+1+"";
		this.day = cal.get(Calendar.DATE)+"";
		this.hour = cal.get(Calendar.HOUR)+"";
		this.minute = cal.get(Calendar.MINUTE)+"";
		this.second = cal.get(Calendar.SECOND)+"";
	}
	
	public Time(String year, String month, String day, String hour,
			String minute, String second) {
		super();
		this.year = year;
		this.month = month;
		this.day = day;
		this.hour = hour;
		this.minute = minute;
		this.second = second;
	}

	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public String getMonth() {
		return month;
	}
	public void setMonth(String month) {
		this.month = month;
	}
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	public String getHour() {
		return hour;
	}
	public void setHour(String hour) {
		this.hour = hour;
	}
	public String getMinute() {
		return minute;
	}
	public void setMinute(String minute) {
		this.minute = minute;
	}
	public String getSecond() {
		return second;
	}
	public void setSecond(String second) {
		this.second = second;
	}
	
	

}
